<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container {
      position: relative;
      height: 400px;
      margin: 50px;
      background: #aaa;
    }
    .absolute1 {
      background: #f64;
      position: fixed;
      top: 10px;
      left: 0;
      width: 100%;
    }
    .absolute2 {
      position: fixed;
      top: 10px;
      left: 0;
      width: 100%;
      background: #00f;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="absolute1">
      <p>哈哈哈</p>
      <p>哈哈哈</p>
      <p>哈哈哈</p>
      <p>哈哈哈</p>
      <p>哈哈哈</p>
      <div class="absolute2">
        <p>1111111111</p>
        <p>1111111111</p>
        <p>1111111111</p>
        <p>1111111111</p>
        <p>1111111111</p>
        <p>1111111111</p>
      </div>
    </div>
  </div>
</body>
</html>